using Entity.Interface;
using UnityEngine;

namespace Entity
{
    public class EntityData : IEntity
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public Vector3 position { get; set; }
        public Vector3 rotation { get; set; }
        public float nowTime { get; set; }

        public EntityData(EntityPro entityPro)
        {
            this.ID = entityPro.Id;
            this.Name = entityPro.Name;
            this.nowTime = entityPro.NowTime;
            this.rotation = new Vector3(entityPro.Rotation.X, entityPro.Rotation.Y, entityPro.Rotation.Z);
            this.position = new Vector3(entityPro.Position.X, entityPro.Position.Y, entityPro.Position.Z);
        }

        public EntityData()
        {
        }
    }
}